﻿CREATE TABLE [dbo].[Ata]
(
	[ata_codigo] INT NOT NULL PRIMARY KEY, 
    [data] DATE NOT NULL,
	[ata_materia] INT NOT NULL,
	FOREIGN KEY ([ata_materia]) references Materia
)
